<?php $this->load->view('head.html'); ?>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="./index.html">X-admin v2.0</a></div>
        <div class="left_open">
            <i title="展开左侧栏" class="iconfont">&#xe699;</i>
        </div>
        <ul class="layui-nav left fast-add" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">+新增</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onclick="x_admin_show('资讯','http://www.baidu.com')"><i class="iconfont">&#xe6a2;</i>资讯</a></dd>
              <dd><a onclick="x_admin_show('图片','http://www.baidu.com')"><i class="iconfont">&#xe6a8;</i>图片</a></dd>
               <dd><a onclick="x_admin_show('用户','http://www.baidu.com')"><i class="iconfont">&#xe6b8;</i>用户</a></dd>
            </dl>
          </li>
        </ul>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">欢迎你:<?php echo rbac_conf(array('INFO','nickname'));?></a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>
              <dd><a onclick="x_admin_show('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
              <dd><a href="index/logout">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item to-index"><a href="<?=base_url();?>index/logout">退出登录</a></li>
        </ul>
        
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
     <!-- 左侧菜单开始 -->
     <?php $this->load->view("menu.html",array("menu"=>$this->get_menu));?> 
    
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
          <ul class="layui-tab-title">
            <li>留言列表</li>
          </ul>
          <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
            	
            	
                <iframe src='/suggest/suggest/suggest_list' frameborder="0" scrolling="yes" class="x-iframe">
                  <script type="text/javascript">
                     var arr=<?php echo json_encode($list);?>;
  if(arr.length > 0){
    for(var key in arr[0]){
      //console.log(key);
      $("input:not(:radio)[name='"+key+"']").not(":checkbox").val(arr[0][key]);
      $("select[name='"+key+"']").val(arr[0][key]);
      $("input:radio[name='"+key+"'][value='"+arr[0][key]+"']").attr("checked", true);
    }
  }
  
                  </script>
                </iframe>
            </div>
          </div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <?php $this->load->view('foot.html'); ?>
</body>
</html>